<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewEmpresaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewEmpresaLabel_id}"/>
                    <h:outputText value="#{empresaController.selected.id}" title="#{bundle.ViewEmpresaTitle_id}"/>
                    <h:outputText value="#{bundle.ViewEmpresaLabel_nome}"/>
                    <h:outputText value="#{empresaController.selected.nome}" title="#{bundle.ViewEmpresaTitle_nome}"/>
                    <h:outputText value="#{bundle.ViewEmpresaLabel_cnpj}"/>
                    <h:outputText value="#{empresaController.selected.cnpj}" title="#{bundle.ViewEmpresaTitle_cnpj}"/>
                    <h:outputText value="#{bundle.ViewEmpresaLabel_emailInstitucional}"/>
                    <h:outputText value="#{empresaController.selected.emailInstitucional}" title="#{bundle.ViewEmpresaTitle_emailInstitucional}"/>
                    <h:outputText value="#{bundle.ViewEmpresaLabel_rua}"/>
                    <h:outputText value="#{empresaController.selected.rua}" title="#{bundle.ViewEmpresaTitle_rua}"/>
                    <h:outputText value="#{bundle.ViewEmpresaLabel_numero}"/>
                    <h:outputText value="#{empresaController.selected.numero}" title="#{bundle.ViewEmpresaTitle_numero}"/>
                    <h:outputText value="#{bundle.ViewEmpresaLabel_cidade}"/>
                    <h:outputText value="#{empresaController.selected.cidade}" title="#{bundle.ViewEmpresaTitle_cidade}"/>
                    <h:outputText value="#{bundle.ViewEmpresaLabel_uf}"/>
                    <h:outputText value="#{empresaController.selected.uf}" title="#{bundle.ViewEmpresaTitle_uf}"/>
                    <h:outputText value="#{bundle.ViewEmpresaLabel_cep}"/>
                    <h:outputText value="#{empresaController.selected.cep}" title="#{bundle.ViewEmpresaTitle_cep}"/>
                    <h:outputText value="#{bundle.ViewEmpresaLabel_complemento}"/>
                    <h:outputText value="#{empresaController.selected.complemento}" title="#{bundle.ViewEmpresaTitle_complemento}"/>
                    <h:outputText value="#{bundle.ViewEmpresaLabel_telefoneInstitucional}"/>
                    <h:outputText value="#{empresaController.selected.telefoneInstitucional}" title="#{bundle.ViewEmpresaTitle_telefoneInstitucional}"/>
                    <h:outputText value="#{bundle.ViewEmpresaLabel_bairro}"/>
                    <h:outputText value="#{empresaController.selected.bairro}" title="#{bundle.ViewEmpresaTitle_bairro}"/>
                    <h:outputText value="#{bundle.ViewEmpresaLabel_ramoDeAtividade}"/>
                    <h:outputText value="#{empresaController.selected.ramoDeAtividade}" title="#{bundle.ViewEmpresaTitle_ramoDeAtividade}"/>
                    <h:outputText value="#{bundle.ViewEmpresaLabel_dataDeCadastro}"/>
                    <h:outputText value="#{empresaController.selected.dataDeCadastro}" title="#{bundle.ViewEmpresaTitle_dataDeCadastro}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{empresaController.destroyAndView}" value="#{bundle.ViewEmpresaDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewEmpresaEditLink}"/>
                <br />
                <h:commandLink action="#{empresaController.prepareCreate}" value="#{bundle.ViewEmpresaCreateLink}" />
                <br />
                <h:commandLink action="#{empresaController.prepareList}" value="#{bundle.ViewEmpresaShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewEmpresaIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
